package com.aaa.mapper.front;

import com.aaa.entity.ShippingAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FrontUserAddressMapper {
    //显示地址
    List<ShippingAddress>findAllByAddress1(Integer UserInfoId);
    //显示地址
    List<ShippingAddress>findAllByAddress(Integer UserInfoId);
    //根据地址id修改地址
    ShippingAddress findByShippingAddressId(Integer shippingAddressId);
    //修改地址
    int doUpdateAddress(ShippingAddress shippingAddress);
    //添加地址
    int doAddAddress(ShippingAddress shippingAddress);
    //删除地址
    int doDeleteAddress(Integer shippingAddressId);
}
